<? namespace Bitrix\Main;$GLOBALS['____467576167']= array(base64_decode('Z'.'mlsZV'.'9leGlzdHM='),base64_decode('c3'.'Ry'.'dG'.'9'.'1cHB'.'lcg='.'='),base64_decode(''.'bWQ1'),base64_decode('bWQ1'),base64_decode(''.'aW'.'5'.'fYXJyYXk='),base64_decode('ZGVmaW5'.'lZA='.'='),base64_decode(''.'Z'.'GVmaW5lZA=='),base64_decode(''.'ZG'.'Vma'.'W5l'.'ZA'.'=='),base64_decode(''.'Zmls'.'Z'.'V9leG'.'lz'.'d'.'HM='),base64_decode('ZmlsZV9leGlz'.'d'.'HM='),base64_decode(''.'Zm'.'lsZV9'.'leGl'.'zdH'.'M='),base64_decode('ZmlsZV9'.'le'.'G'.'lzdHM='));if(!function_exists(__NAMESPACE__.'\\___519597828')){function ___519597828($_1428556957){static $_467776133= false; if($_467776133 == false) $_467776133=array('L2JpdHJp'.'eC9'.'saWNlbnNl'.'X2'.'tleS5wa'.'HA=','','','REVNTw==','REVNTw='.'=','Qkl'.'UUklY','TE'.'lD'.'RU5'.'DRQ==','R'.'EVNT'.'w==',''.'L2t'.'leV9'.'1cGRhdGUucGhwP2'.'xpY2Vuc'.'2Vfa2V'.'5PQ==','JnRvY'.'mFza2V0PXkmbGFuZ'.'z0=','cn'.'U=','a3o=',''.'Ynk=','aH'.'R0cHM'.'6Ly9kZXYuM'.'W'.'MtYml'.'0cml4LnJ1'.'L2xlYXJ'.'uaW5nL2NvdXJzZ'.'S9p'.'bmRleC'.'5waHA/'.'Q09VUlNFX'.'0lEPTEzNSZ'.'MRVNTT05'.'fSU'.'Q'.'9MjU3MjA=','aH'.'R0cHM6Ly9'.'0cmFpbm'.'luZy5'.'iaXRyaXgyNC5j'.'b20vc3Vw'.'cG9ydC90cmFpbml'.'u'.'Zy9'.'j'.'b3Vyc2UvaW'.'5kZXgucGh'.'wP0NP'.'V'.'VJTRV9JRD0xNzgmT'.'EVTU0'.'9OX0'.'lE'.'P'.'TI1O'.'TMyJkxFU1N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'QkJCQlM'.'R'.'UZUIEp'.'PS'.'U4gKAoJCQkJCQk'.'JC'.'V'.'NFT'.'E'.'VDVCB'.'VRi5WQUxV'.'R'.'V9J'.'RCAKC'.'QkJCQkJ'.'C'.'QlGUk9'.'N'.'I'.'A'.'oJCQ'.'kJ'.'CQkJ'.'CQ'.'liX3VzZXJfZm'.'llbGQ'.'gRgo'.'JCQkJCQ'.'kJCQlJTk'.'5FUiBKT0lOIGJfdXRtX3V'.'zZXIg'.'VUY'.'gT04gVUYuRklFT'.'ERfSUQ'.'gPSB'.'GLklE'.'IE'.'FORCBVR'.'i5W'.'QUxVRV'.'9JTlQgPiAw'.'CgkJ'.'C'.'QkJ'.'C'.'QkJV0'.'hFUkUgRi5FT'.'lRJVF'.'lfSUQ'.'gPS'.'An'.'VVNFUic'.'gQU5EI'.'EY'.'u'.'Rk'.'lFTERfTkFN'.'RS'.'A9ICdV'.'Rl9ERV'.'BBUlRNRU5UJ'.'woJCQkJCQk'.'JKS'.'B'.'EIE9O'.'I'.'E'.'QuVkFM'.'V'.'UV'.'fSUQgPSBVLklECgk'.'JCQkJCVdIRVJFIFUuQUNUSVZFID0gJ1'.'k'.'n'.'CgkJCQkJ'.'CQ'.'k=','CgkJC'.'Qk'.'J'.'CQlBTkQgRC5WQUxVRV9JRCBJUy'.'BOVU'.'xMCg'.'kJCQkJ','Cg'.'k'.'JCQ'.'lTRUxF'.'Q1Qg'.'Q'.'09VTlQoSUQ'.'pC'.'gkJC'.'Ql'.'GUk'.'9NI'.'GJfdXNl'.'ciBVCg'.'kJ'.'CQ'.'lXSE'.'VSRSBVLkFDV'.'ElW'.'RSA9ICdZJw'.'oJCQ'.'kJCQ==',''.'C'.'gkJCQ'.'==');return base64_decode($_467776133[$_1428556957]);}}; use Bitrix\Main\Config\Option; use Bitrix\Main\Type\Date; final class License{ private?string $_1571769936= null; private const DOMAINS_STORE_LICENSE=[ 'ru' => 'https://util.1c-bitrix.ru', 'ua' => 'https://util.bitrix.ua', 'en' => 'https://util.bitrixsoft.com', 'kz' => 'https://util.1c-bitrix.kz', 'by' => 'https://util.1c-bitrix.by',]; public const URL_BUS_EULA=[ 'ru' => 'https://www.1c-bitrix.ru/download/law/eula_bus.pdf', 'by' => 'https://www.1c-bitrix.by/download/law/eula_bus.pdf', 'kz' => 'https://www.1c-bitrix.kz/download/law/eula_bus.pdf', 'ua' => 'https://www.bitrix.ua/download/law/eula_bus.pdf',]; public const URL_CP_EULA=[ 'ru' => 'https://www.1c-bitrix.ru/download/law/eula_cp.pdf', 'by' => 'https://www.1c-bitrix.by/download/law/eula_cp.pdf', 'kz' => 'https://www.1c-bitrix.kz/download/law/eula_cp.pdf', 'en' => 'https://www.bitrix24.com/eula/', 'br' => 'https://www.bitrix24.com.br/eula/', 'fr' => 'https://www.bitrix24.fr/eula/', 'pl' => 'https://www.bitrix24.pl/eula/', 'it' => 'https://www.bitrix24.it/eula/', 'la' => 'https://www.bitrix24.es/eula/',]; public function getKey(): string{ if($this->_1571769936 === null){ $_142832354= Loader::getDocumentRoot(). ___519597828(0); $LICENSE_KEY= ___519597828(1); if($GLOBALS['____467576167'][0]($_142832354)){ include($_142832354);} $this->_1571769936=($LICENSE_KEY == ___519597828(2) || $GLOBALS['____467576167'][1]($LICENSE_KEY) == ___519597828(3)? ___519597828(4): $LICENSE_KEY);} return $this->_1571769936;} public function getHashLicenseKey(): string{ return $GLOBALS['____467576167'][2]($this->getKey());} public function getPublicHashKey(): string{ return $GLOBALS['____467576167'][3](___519597828(5). $this->getKey(). ___519597828(6));} public function isDemoKey(): bool{ return $this->getKey() == ___519597828(7);} public function getBuyLink(): string{ return $this->getDomainStoreLicense(). ___519597828(8). $this->getHashLicenseKey(). ___519597828(9). LANGUAGE_ID;} public function getDocumentationLink(): string{ $_531514055= $this->getRegion(); if($GLOBALS['____467576167'][4]($_531514055,[___519597828(10), ___519597828(11), ___519597828(12)])){ return ___519597828(13);} return ___519597828(14);} public function getDomainStoreLicense(): string{ return self::DOMAINS_STORE_LICENSE[$this->getRegion()] ?? self::DOMAINS_STORE_LICENSE[___519597828(15)];} public function isDemo(): bool{ return $GLOBALS['____467576167'][5](___519597828(16)) && DEMO === ___519597828(17);} public function isTimeBound(): bool{ return $GLOBALS['____467576167'][6](___519597828(18)) && TIMELIMIT_EDITION === ___519597828(19);} public function isEncoded(): bool{ return $GLOBALS['____467576167'][7](___519597828(20)) && ENCODE === ___519597828(21);} public function getExpireDate():?Date{ $_333565670= (int)$GLOBALS[___519597828(22)]; if($_333565670>(1276/2-638)){ return Date::createFromTimestamp($_333565670);} return null;} public function getRegion():?string{ if(Loader::includeModule(___519597828(23))){ return \CBitrix24::getPortalZone();} $_531514055= Option::get(___519597828(24), ___519597828(25)); if(!empty($_531514055)){ return $_531514055;} $_531514055= $this->__692563533(); if(!empty($_531514055)){ return $_531514055;} return $this->__1451933006();} public function getEulaLink(): string{ if(ModuleManager::isModuleInstalled(___519597828(26))){ return self::URL_CP_EULA[$this->getRegion()] ?? self::URL_CP_EULA[___519597828(27)];} return self::URL_BUS_EULA[$this->getRegion()] ?? self::URL_BUS_EULA[___519597828(28)];} private function __692563533():?string{ $_1656450350= Option::get(___519597828(29), ___519597828(30)); if($_1656450350 === ___519597828(31)){ return ___519597828(32);} if($_1656450350 === ___519597828(33)){ return ___519597828(34);} if($_1656450350 === ___519597828(35)){ return ___519597828(36);} return null;} private function __1451933006():?string{ $_1964481294= Application::getDocumentRoot(); if($GLOBALS['____467576167'][8]($_1964481294. ___519597828(37))){ return ___519597828(38);} if($GLOBALS['____467576167'][9]($_1964481294. ___519597828(39))){ return ___519597828(40);} if($GLOBALS['____467576167'][10]($_1964481294. ___519597828(41))){ return ___519597828(42);} if($GLOBALS['____467576167'][11]($_1964481294. ___519597828(43))){ return ___519597828(44);} return null;} public function getPartnerId(): int{ return (int)Option::get(___519597828(45), ___519597828(46),(1376/2-688));} public function getMaxUsers(): int{ return (int)Option::get(___519597828(47), ___519597828(48),(1108/2-554));} public function isExtraCountable(): bool{ return Option::get(___519597828(49), ___519597828(50), ___519597828(51)) === ___519597828(52) && ModuleManager::isModuleInstalled(___519597828(53));} public function getActiveUsersCount(Date $_902820672= null){ $_823535938= Application::getConnection(); if($_902820672 !== null){  $_1672993512= ___519597828(54).$_823535938->getSqlHelper()->convertToDbDate($_902820672);} else{  $_1672993512= ___519597828(55);} if(ModuleManager::isModuleInstalled(___519597828(56))){ $_423898163= ___519597828(57). $_1672993512. ___519597828(58); $_1481505281= (int)$_823535938->queryScalar($_423898163); if($this->isExtraCountable()){ $_180645493= (int)Option::get(___519597828(59), ___519597828(60)); if($_180645493>(200*2-400)){ $_423898163= ___519597828(61). $_180645493. ___519597828(62). $_1672993512. ___519597828(63); $_1481505281 += (int)$_823535938->queryScalar($_423898163);}}} else{ $_423898163= ___519597828(64). $_1672993512. ___519597828(65); $_1481505281= (int)$_823535938->queryScalar($_423898163);} return $_1481505281;}}?>